package com.okq.entity;

import com.okq.entity.base.DataEntity;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;
import java.sql.Timestamp;

/**
 * 描述 : 用户表
 * 作者 : zdl
 * 日期 : 2017/6/27 16:55
 */
@Entity
@DynamicInsert
@DynamicUpdate
@Table(name = "tb_user")
public class User extends DataEntity implements Serializable {

    private static final long serialVersionUID = 48317967821376671L;
    /**
     * 用户姓名
     */
    @Column(name = "userName", length = 40)
    private String userName;
    /**
     * 登录名
     */
    @Column(name = "loginName", length = 40)
    private String loginName;
    /**
     * 登录密码
     */
    @Column(name = "loginPass", length = 40)
    private String loginPass;
    /**
     * 手机
     */
    @Column(name = "cellphone", length = 15)
    private String cellphone;
    /**
     * 电话
     */
    @Column(name = "telephone", length = 15)
    private String telephone;
    /**
     * 性别 0：女 1：男
     */
    @Column(name = "sex")
    private Integer sex;
    /**
     * 年龄
     */
    @Column(name = "age")
    private Integer age;
    /**
     * 邮箱
     */
    @Column(name = "email", length = 40)
    private String email;
    /**
     * 部门ID
     */
    @Column(name = "groupId")
    private String groupId;
    /**
     * 角色ID
     */
    @Column(name = "roleId")
    private String roleId;
    /**
     * 最后登录时间
     */
    @Column(name = "lastloginTime")
    private Timestamp lastloginTime;

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public String getLoginPass() {
        return loginPass;
    }

    public void setLoginPass(String loginPass) {
        this.loginPass = loginPass;
    }

    public String getCellphone() {
        return cellphone;
    }

    public void setCellphone(String cellphone) {
        this.cellphone = cellphone;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getGroupId() {
        return groupId;
    }

    public void setGroupId(String groupId) {
        this.groupId = groupId;
    }

    public String getRoleId() {
        return roleId;
    }

    public void setRoleId(String roleId) {
        this.roleId = roleId;
    }

    public Timestamp getLastloginTime() {
        return lastloginTime;
    }

    public void setLastloginTime(Timestamp lastloginTime) {
        this.lastloginTime = lastloginTime;
    }
}
